package org.example.memora.service;

import org.example.memora.entity.ChatMessage;

import java.util.List;

public interface ChatMessageService {
    void save(ChatMessage message);
    //List<ChatMessage> getHistory(Long communityId);
    List<ChatMessage> getHistory(Long communityId, Integer page, Integer size);
    List<ChatMessage> getHistoryByPage(Long communityId, Integer page, Integer size);
    void broadcastToCommunity(ChatMessage message);
}

